package com.fer.mapper;

import com.fer.model.Goods;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * 这是商品mapper的抽象类
 */
@Mapper
public interface GoodsMapper {

    //通过商品id获取商品信息
    Goods selectGood(Integer goods_id);

    List<Goods> selectGoodByName(Integer shop_id,String goods_name);

    List<Goods> selectAllGoods(Integer shop_id);

    void insertGood(Goods goods);

    void deleteGood(Integer goods_id);

    int updateGood(Goods goods);
}
